package vip.zcn.mrn.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import vip.zcn.mrn.service.DeptService;

@RestController
@RequestMapping("/dept")
@RequiredArgsConstructor
public class DeptController {
    private final DeptService deptService;

    @DeleteMapping("/delete")
    public String delete(@RequestParam String deptId) {
        return deptService.deleteDept(deptId);
    }
}